part of 'widget.dart';

class _HeaderBackButtonView extends StatelessWidget {
  const _HeaderBackButtonView({
    required this.onPressed,
  });

  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return AppButton(
      onPressed: onPressed,
      child: SizedBox(
        height: 40,
        width: 36,
        child: Center(
          child: Icon(
            CupertinoIcons.chevron_back,
            size: 26,
            color: _HeaderBackButtonTheme.of(context).iconColor,
          ),
        ),
      ),
    );
  }
}
